package com.zzyk.main.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyk.main.model.pojo.DeviceGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface DeviceGroupMapper extends BaseMapper<DeviceGroup> {
    Set<DeviceGroup> getListByUser(@Param("id") Integer id);

    Integer[] getDeviceList(@Param("id") Integer id);

    void deleteByDeviceType(@Param("cancel") List<Integer> cancel, @Param("organization") Integer organization);

    void setNull(@Param("deviceGroup") DeviceGroup deviceGroup);
}